const path = require('path');

module.exports = {
    webpack: {
        configure: (webpackConfig) => {
            const alias = {
                // 添加你的路径别名配置
                '@': path.resolve(__dirname, 'src'),
                '@components': path.resolve(__dirname, 'src/components'),
                '@utils': path.resolve(__dirname, 'src/utils'),
                // 更多的别名配置...
            };

            // 将别名配置合并到 webpack 配置中
            webpackConfig.resolve.alias = { ...webpackConfig.resolve.alias, ...alias };

            return webpackConfig;
        },
    },
};
